package com.zito.health.common.service;

import java.util.List;

/**
 * 基础接口
 * @param <T>
 */
public interface BaseService<T> {

    public T save(T object);

    public void delete(Integer id);

    public void update(T object);

    public List<T> query();

    public List<T> query(T object);

    public T queryOne(T object);

    public T queryById(Integer id);

    public boolean exists(Integer id);

}
